package com.gditt.extendsdemo;

public class Main {

	public static void main(String[] args) {
		Employee boss;
		boss= new Employee("wang dali", 80000, 1985, 6, 23);
		boss = new Manager("wang dali", 80000, 1985, 6, 23);
		boss.setBonus(5000);
		Employee[] staff = new Employee[3];
		staff[0] = boss;
		staff[1] = new Employee("xiao ming", 50000, 1993, 9, 15);
		staff[2] = new Employee("li li", 40000, 2000, 12, 8);
		for (Employee e : staff) {
			System.out.println("name="+e.getName()+", salary="+e.getSalary());
		}

	}

}
